<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>常见属性页面</title>
</head>
<body>
<form method="get" th:action="@{http://localhost:8080/test02}">
    用户编号<input type="text" th:id="id" th:name="id"><br>
    用户姓名<input type="text" th:id="username" th:name="username"><br>
    用户年龄<input type="text" th:id="age" th:name="age"><br>
    <input type="submit" value="提交"><br>
</form>
<script type="text/javascript" th:src="@{jquery-3.5.1.js}"></script>
<script type="text/javascript">
    function test(){
        alert("...")
    }
</script>
<button th:onclick="test()">提交</button>
</body>
</html>